package com.twu.biblioteca.db;

import com.twu.biblioteca.model.Movie;

public class MovieStore extends Store {

    public MovieStore() {
        super();
        items.add(new Movie("100", "movie1", 2014, "director1", 9));
        items.add(new Movie("101", "movie2", 2014, "director2", 7));
        items.add(new Movie("102", "movie3", 2014, "director3", 8));
    }

    void printHeader() {
        System.out.println("Movie Id\tName\t\tYear\tDirector\tRating");
    }

    public boolean checkout(String movieId) {
        Movie movie =(Movie) findById(movieId);
        return movie != null;
    }

}
